from pathlib import Path

path = Path("E:\downloads\Robert Louis Stevenson.txt")

contents = path.read_text()
print(contents.count('there'))

words = contents.split()
num_words = len(words)
print(num_words)

